//
//  UserDefaultsManager.h
//  NewPro
//
//  Created by 何荧红 on 2018/10/19.
//  Copyright © 2018 何荧红. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface UserDefaultsManager : NSObject
@property (nonatomic, copy) NSString *user_id;        //用户id
@property (nonatomic, copy) NSString *user_name;      //用户名实为手机号
@property (nonatomic, copy) NSString *real_name;      //真实的用户名
@property (nonatomic, copy) NSString *user_pwd;       //用户密码
@property (nonatomic, copy) NSString *user_avatar;    //用户头像
@property (nonatomic, copy) NSString *user_email;     //用户邮箱
@property (nonatomic, copy) NSString *user_mobile;    //用户手机号
@property (nonatomic, copy) NSString *session_id;     //session_id
@property (nonatomic, copy) NSString *ronguser_id;    //由融云请求的ID

@property (nonatomic, copy) NSString *isLookDynamicmessage;//   动态消息提醒    是    [string]
@property (nonatomic, copy) NSString *isLookPrivateLetter;//    私信消息提醒    是    [string]
@property (nonatomic, copy) NSString *isLookSysmessage;//       系统消息提醒    是    [string]
@property (nonatomic, copy) NSString *isLook;//                 总的消息提醒    是    [string]

@property (nonatomic, assign) BOOL needCustomUI;      //是否审核
@property (nonatomic, assign) BOOL forcedUpgrade;     //是否强制升级
@property (nonatomic, assign) BOOL needUpgrade;       //是否强制升级

@property (nonatomic, copy) NSString        *deviceToken;           //设备id
@property (nonatomic, assign) double        latitude;               //用户当前位置纬度ypoint
@property (nonatomic, assign) double        longitude;              //用户当前位置经度xpoint
@property (nonatomic, assign) NSInteger     city_id;                //指定的城市ID
@property (nonatomic, copy) NSString        *city;                  //定位出的市
@property (nonatomic, copy) NSString        *province;              //定位出来的省
@property (nonatomic, copy) NSString        *area;                  //定位出来的行政区
@property (nonatomic, copy) NSString        *locateName;            //定位出来的具体地址
@property (nonatomic, assign) Boolean       is_refresh_tableview;  //城市发生改变数据刷新
@property (nonatomic) NSInteger ref_uid;         // 推荐人 ID

@property (nonatomic, assign) NSInteger from_app;//判断是否来自APP

+ (UserDefaultsManager *)sharedInstance;
- (BOOL)LoginSuccess;

- (void)iSNewVersionSuccess:(void(^)(NSDictionary *res))success Failure:(void(^)(NSError *error))failure;

@end

NS_ASSUME_NONNULL_END
